package com.cloudfun.campusshare.common.model.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * Created by Huqin on 2020/6/8
 */
@Data
@ApiModel("代金券活动创建DTO")
public class CouponPromotionCreateDTO extends PromotionDTO {

    @ApiModelProperty("代金券id")
    @NotEmpty(message = "该字段不能为空")
    private String couponId;

    @ApiModelProperty("账号领取数量")
    @NotNull(message = "该字段不能为空")
    @Min(value = 1, message = "请输入正确的单人领取数量限制")
    @Max(value = 10, message = "请输入正确的单人领取数量限制")
    private Integer accountDrawQuantity;

    @ApiModelProperty("总数")
    @NotNull(message = "该字段不能为空")
    @Min(value = 1, message = "请输入正确的总数量限制")
    private Integer totalQuantity;

}
